﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Peking_Duck
{
    public partial class DisplaySQL : Form
    {
        public DisplaySQL()
        {
            InitializeComponent();
        }

        private void checkboxUnlock_CheckedChanged(object sender, EventArgs e)
        {
            if (checkboxUnlock.Checked == true)
            {
                this.richtextboxSQL.ReadOnly = false;
                this.richtextboxSQL.ForeColor = Color.DarkGreen;
                this.richtextboxSQL.BackColor = Color.White;
            }
            else
            {
                this.richtextboxSQL.ReadOnly = true;
                this.richtextboxSQL.ForeColor = Color.Navy;
                this.richtextboxSQL.BackColor = Control.DefaultBackColor;
            }
        }
    }
}
